﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace vroom.wcf.common
{
	public static class ServiceUtils
	{
		public static string ToIso(this DateTime datetime)
		{
			return datetime.ToString("yyyy-MM-dd");
		}

		public static DateTime ToIsoDate(this DateTime datetime)
		{
			return DateTime.Parse(datetime.ToString("yyyy-MM-dd"));
		}
	}  
}
